/*
 * @Author: xuchao 
 * @Date: 2018-05-16 14:30:14 
 * @Last Modified by: xuchao
 * @Last Modified time: 2018-06-12 16:10:35
 */
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { Layout } from 'antd';

class Footer extends Component {
    render() {
        const { pathname } = this.props.location;
        return (
            <Layout.Footer className={
                (pathname === '/login' || pathname === '/register') ? 
                    'absolute'
                    :
                    'relative'
            }>
                @2018 连云港市网信办版权所有
            </Layout.Footer>
        )
    }
}

export default withRouter(Footer);